package com.wfs.javabean;

/**
 * 操作类
 */
public class StudentOperator {
    Student s1;
    public  StudentOperator(Student s1){
        this.s1 = s1;
    }
    public void printAllScore() {
        System.out.println("情况："+s1.name + " " + s1.math + " " + s1.chinese);
    }
    public double getAverage() {
        return (s1.math + s1.chinese) / 2;
    }
}
